/*
 * RevenueSourceBO.java
 */
package finalintex2web;
import java.util.*;

/**
 * Business object for revenue sources
 * @author craig marshall
 */
public abstract class RevenueSourceBO {
    
   private String id = null, type = null; 
   private double price = 0;
   private boolean indb = false , dirty = false;
   
   
    
    /** Creates a new instance of RevenueSourceBO */
    RevenueSourceBO(String id) {
        this.setId(id);
        
    }
    
    //start methods

    /**
     * 
     * @return 
     */
    public String getId() {
        return id;
    }

    /**
     * 
     * @param id 
     */
    public void setId(String id) {
        this.id = id;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public boolean isIndb() {
        return indb;
    }

    /**
     * 
     * @param indb 
     */
    public void setIndb(boolean indb) {
        this.indb = indb;
    }

    /**
     * 
     * @return 
     */
    public boolean isDirty() {
        return dirty;
    }

    /**
     * 
     * @param dirty 
     */
    public void setDirty(boolean dirty) {
        this.dirty = dirty;
    }

    /**
     * 
     * @return 
     */
    public String getType() {
        return type;
    }

    /**
     * 
     * @param type 
     */
    public void setType(String type) {
        this.type = type;
        this.setDirty(true);
    }

    /**
     * 
     * @return 
     */
    public double getPrice() {
        return price;
        
    }

    /**
     * 
     * @param price 
     */
    public void setPrice(double price) {
        this.price = price;
        this.setDirty(true);
    }
}